package com.example.hospitalManage.dao;

import com.example.hospitalManage.entity.UserInfo;
import com.example.hospitalManage.utils.PageQueryUtil;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ProjectName: yygh
 * @Author: gxy
 * @Time: 2022/12/22 16:39
 * @Description: 描述
 */
@Mapper
public interface UserOperateMapper {

    int deleteByPrimaryKey(Long userId);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Long userId);

    UserInfo selectByName(String name);

    UserInfo selectByPhoneAndPasswd(@Param("phone") String phone, @Param("password") String password);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    List<UserInfo> findMallUserList(PageQueryUtil pageUtil);

    int getTotalUsers(PageQueryUtil pageUtil);

    int lockUserBatch(@Param("ids") Long[] ids, @Param("lockStatus") int lockStatus);
}
